﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="EditRaffleListMaster.aspx.vb"
    Inherits="Arwani.Backend_AddEditRaffleListMaster" ValidateRequest="false" %>

<%@ Register Src="Menu.ascx" TagName="Menu" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Arwani Backend Panel</title>
    <style type="text/css">
        .style1
        {
            height: 31px;
        }
    </style>
    <script src="../tiny_mce/tiny_mce.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        tinyMCE.init({
            // General options
            mode: "textareas",
            theme: "advanced",
            plugins: "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups",
           
        });
    </script>
    <script type="text/javascript">
        function popupCalendar() {
            var dateField = document.getElementById('calStartDate');
            var dateField2 = document.getElementById('calEndDate');
            dateField2.style.display = 'none'
            // toggle the div
            if (dateField.style.display == 'none')
                dateField.style.display = 'block';
            else
                dateField.style.display = 'none';
        }


        function popupCalendarEnd() {
            var dateField = document.getElementById('calEndDate');
            var dateField2 = document.getElementById('calStartDate');
            dateField2.style.display = 'none'
            // toggle the div
            if (dateField.style.display == 'none')
                dateField.style.display = 'block';
            else
                dateField.style.display = 'none';
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="pnlAdd" runat="server" DefaultButton="btnSubmit">
            <table border="0" cellpadding="3" cellspacing="3" width="100%">
                <tr>
                    <td align="center">
                        <uc1:Menu ID="Menu1" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <table border="0" cellpadding="3" cellspacing="3" width="80%">
                            <tr>
                                <td align="center">
                                    <table cellpadding="3" cellspacing="3" class="style1" border="0" width="75%">
                                        <tr>
                                            <td colspan="2" align="center">
                                                <asp:Label ID="lblBrandHead" runat="server" Font-Size="XX-Large" Font-Underline="True"
                                                    ForeColor="Black" Text="Edit RaffleList Master"></asp:Label>
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" align="center" style="height: 10px">
                                                <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                <asp:Label ID="lblContactName" runat="server" Text="Name"></asp:Label>
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txtName" runat="server" Width="222px" CssClass="form-control"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Style="color: Red;"
                                                    Display="Dynamic" ErrorMessage="Required!" ControlToValidate="txtName" ValidationGroup="submit"></asp:RequiredFieldValidator>
                                            </td>
                                            <td rowspan="10" valign="top">
                                                <asp:Calendar ID="calStartDate" runat="server" Style="display: none;"></asp:Calendar>
                                                <br />
                                                <br />
                                                <asp:Calendar ID="calEndDate" runat="server" Style="display: none;"></asp:Calendar>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="line-height: 5px;">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" style="width: 30%;">
                                                <asp:Label ID="lblStartDate" runat="server" Text="Start Date"></asp:Label>
                                            </td>
                                            <td align="left" style="width: 40%;">
                                                <table>
                                                    <tr>
                                                        <td>
                                                            <asp:TextBox ID="TextBox1" runat="server" Width="100px" CssClass="form-control"></asp:TextBox>
                                                        </td>
                                                        <td>
                                                            <img src="../images/Calendar-icon.gif" alt="Start Date" style="width: 20px; height: 20px;"
                                                                onclick="popupCalendar()" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="line-height: 5px;">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" class="style1">
                                                <asp:Label ID="lblEndDate" runat="server" Text="End Date"></asp:Label>
                                            </td>
                                            <td align="left" class="style1">
                                                <table>
                                                    <tr>
                                                        <td>
                                                            <asp:TextBox ID="TextBox2" runat="server" Width="100px" CssClass="form-control"></asp:TextBox>
                                                        </td>
                                                        <td>
                                                            <img src="../images/Calendar-icon.gif" alt="End Date" style="width: 20px; height: 20px;"
                                                                onclick="popupCalendarEnd()" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="line-height: 5px;">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                <asp:Label runat="server" ID="lblMessage" Text="Message" AssociatedControlID="txtMessage"></asp:Label>
                                            </td>
                                            <td align="left">
                                               
                                            </td>
                                            <td>

                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="line-height: 5px;">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                        <td colspan="3">
                                         <asp:TextBox runat="server" ID="txtMessage" TextMode="MultiLine" Width="600px" Height="240px"></asp:TextBox>
                                         </td>
                                        </tr>
                                        <tr>
                                            <td align="left" valign="top">
                                                <asp:Label ID="lblDesc" runat="server" Text="Description"></asp:Label>
                                            </td>
                                            <td align="left">
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                        
                                        <tr>
                                            <td style="line-height: 5px;">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3">
                                                <asp:TextBox ID="txtDesc" runat="server" TextMode="MultiLine" Width="600px" Height="240px"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="line-height: 5px;">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr style="display: none;">
                                            <td align="left">
                                                <asp:Label ID="lblActive" runat="server" Text="Active"></asp:Label>
                                            </td>
                                            <td align="left">
                                                <asp:CheckBox ID="ChkActive" runat="server" />
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="line-height: 5px;">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2">
                                                <asp:Button ID="btnSubmit" runat="server" Text="Update" ValidationGroup="submit" />
                                                &nbsp;<asp:Button ID="btnCancel" runat="server" Text="Cancel" />
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
